package UIFree
{
	import UIUtils.uif_util;

	public class uif_optionsComponent extends uif_ecomponent {
		private var _options: Object;
		public function uif_optionsComponent(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:Object='', a_options: Object=null) {
			options = a_options;
			super(parent, ax, ay, awidth, aheight, styleClass);
		}
		
		protected function defaultOptions(): Object {
			return {};
		}
		
		public function get options(): Object {
			return _options;
		}
		
		public function set options(a_options: Object): void {
			setOptions(a_options);
		}
		
		protected function setOptions(a_options: Object): void {
			_options = uif_util.union(defaultOptions(), a_options);
		}
	}
}